﻿@using VirtualPress.Infrastructure.Entities.Entity;
@{
    Meeting data = ViewBag.Meeting;
    ViewBag.Title = "会议管理 -- " + data.Name;
    Layout = "/Areas/WorkSpace/Views/Shared/_WorkSpace.cshtml";
}
<div id="content-header">
    <h1>
        会议管理</h1>
</div>
<div id="breadcrumb">
    <a href="/WorkSpace/Home" class="tip-bottom"><i class="icon-home"></i>起始页</a> <a
        href="/WorkSpace/meeting/baseinfo">会议管理</a> 
        <a class="current">会议基础信息</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon"><i class="icon-pencil"></i></span>
                    <h5>
                        会议管理</h5>
                    <h5 style="float:right;color:Red;">*为必填</h5>
                </div>
                <div class="widget-content nopadding">
                    <form id="form-wizard" class="form-horizontal" method="post" enctype="multipart/form-data" 
                        action="/WorkSpace/Meeting/BaseInfoEdit">
                    <input type="hidden" name="Id" value="@data.Id" />                    
                    <div id="form-wizard-1" class="step">
                        <div class="control-group">
                            <label class="control-label">
                                行业分类 (*)</label>
                            <div class="controls">
                                <select id="sltIndType" name="IndType">
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                编辑部邮箱 (*)</label>
                            <div class="controls">
                                <input id="txtEmail" type="text" name="Email" class="{required:true,email:true}" 
                                value="@data.Email"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                联系人信息 (*)
                            </label>
                            <div class="controls">
                                <textarea name="ContactInfo" rows="10" cols="10" class="{required:true}">@data.ContactInfo.Replace("<br/>","\r\n")</textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                地址 (*)
                            </label>
                            <div class="controls">
                                <input type="text" id="txtAddress" name="Address" class="{required:true}" value="@data.Address" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                传真
                            </label>
                            <div class="controls">
                                <input type="text" id="txtFax" name="Fax" value="@data.Fax" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                主办单位
                            </label>
                            <div class="controls">
                                <input type="text" id="txtZBDW" name="ZBDW" value="@data.ZBDW" readonly="readonly" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                承办单位 (*)
                            </label>
                            <div class="controls">
                                <input type="text" id="txtCBDW" name="CBDW" class="{required:true}" value="@data.CBDW" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                会议日期 (*)
                            </label>
                            <div class="controls">
                                <div id="dpStartDate" class="input-append span3">
                                    <input id="txtStartDate" data-format="yyyy-MM-dd" value="@data.StartDate.ToString("yyyy-MM-dd")" 
                                        type="text" name="StartDate" class="{required:true,dateISO:true}" />
                                    <span class="add-on"><i class="icon-calendar" data-time-icon="icon-time" data-date-icon="icon-calendar">
                                    </i></span>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                截稿日期 (*)
                            </label>
                            <div class="controls">
                                <div id="dpArticleEndDate" class="input-append span3">
                                    <input id="txtArticleEndDate" data-format="yyyy-MM-dd" type="text" value="@data.ArticleEndDate.ToString("yyyy-MM-dd")" 
                                    name="ArticleEndDate" class="{required:true,dateISO:true}" />
                                    <span class="add-on"><i class="icon-calendar" data-time-icon="icon-time" data-date-icon="icon-calendar">
                                    </i></span>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                会议规模
                            </label>
                            <div class="controls">
                                <input type="text" id="txtHYGM" name="HYGM" value="@data.HYGM"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                会议Logo
                            </label>
                            <div class="controls">
                                <input type="file" id="txtLogo" name="CoverImg" />
                                <i>如果不更改logo请不要选择</i>
                            </div>
                        </div>
                    </div>
                    <div id="form-wizard-2" class="step">
                        <div class="control-group">
                            <label class="control-label">
                                征稿范围 (*)
                            </label>
                            <div class="controls">
                                <textarea class="{required:true}" cols="20" rows="10" name="ZGFW">@data.ZGFW</textarea>
                                <label>
                                    本会议的征稿范围。多个范围用 ';' 分割</label>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                日程安排 (*)
                            </label>
                            <div class="controls">
                                <textarea class="{required:true}" cols="20" rows="10" name="Schedule">@data.Schedule.Replace("<br/>", "\r\n")</textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                会后旅游
                            </label>
                            <div class="controls">
                                <script name="Travel" id="txtTravel" type="text/plain">@Html.Raw(data.Travel)</script>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <a class="btn btn-primary" href="/workspace/home/index">返回</a>
                        <input id="next" class="btn btn-primary" type="submit" />
                        <div id="status">
                        </div>
                    </div>
                    <div id="submitted">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section tail
{
    <script type="text/javascript" src="/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/scripts/unicorn.wizard.js"></script>
    <script type="text/javascript" src="/scripts/jquery.metadata.js"></script>
    <script type="text/javascript" src="/scripts/jquery.wizard.js"></script>
    <script type="text/javascript" src="/Scripts/plug.js"></script>
    <script type="text/javascript" charset="utf-8" src="/Scripts/UEditor/editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/Scripts/UEditor/editor_all_min.js"></script>
    <script type="text/javascript">
        UE.getEditor('txtTravel');
        $(function () {
            $('#likjournalmanage').addClass('open active');
            $('#sltPubRate').change(function () {
                if ($(this).val() == '其他') {
                    $('#txtPubRate').show();
                }
                else {
                    $('#txtPubRate').hide();
                }
                $('#txtPubRate').val($(this).val());
            });
            new plug.Control().BuildSelect({ element: 'sltIndType', defaultvalue:'@((int)data.IndType)' }, 'profession');
        });
    </script>
}
